package com.hqd.ch03.v51.context.annotation;

import com.hqd.ch03.v51.aop.scope.ScopedProxyUtils;
import com.hqd.ch03.v51.factory.config.BeanDefinitionHolder;
import com.hqd.ch03.v51.registry.BeanDefinitionRegistry;

public final class ScopedProxyCreator {

    private ScopedProxyCreator() {
    }


    public static BeanDefinitionHolder createScopedProxy(
            BeanDefinitionHolder definitionHolder, BeanDefinitionRegistry registry, boolean proxyTargetClass) {

        return ScopedProxyUtils.createScopedProxy(definitionHolder, registry, proxyTargetClass);
    }

    public static String getTargetBeanName(String originalBeanName) {
        return ScopedProxyUtils.getTargetBeanName(originalBeanName);
    }
}